package com.seqb.manage.dict.service;

import com.github.pagehelper.Page;
import com.seqb.common.ResultVo;
import com.seqb.manage.dict.domain.DictDO;

import java.util.List;
import java.util.Map;

/**
 * @author lilinshen
 * @title 字典表Service
 * @description 请填写相关描述
 * @date 2019/11/14
 */
public interface DictService {

    DictDO get(Long id);

    Page<DictDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    ResultVo save(DictDO dict);

    ResultVo update(DictDO dict);

    int remove(Long id);

    int batchRemove(Long[] ids);

    ResultVo syncDictCache();

    List<DictDO> getDictCache(String type);

    List<DictDO> getDictList(String type, Long parentId);
}
